package subject_set.offer100;

/**
 * @author haomin
 * @date 2022/10/13 22:31
 **/
public class Offer17 {
    class Solution {
        public int[] printNumbers(int n) {
            int len = (int)Math.pow(10, n) - 1;
            int[] ans = new int[len];
            for(int i = 0; i < len; ++i) ans[i] = i+1;
            return ans;
        }
    }
}